<?php 
namespace Admin\Model;
use Think\Model\RelationModel;
class AppModel extends RelationModel{
   protected $_validate=array(

   );
   protected $_link = array(
		'apptype' => array(
		'mapping_type'  => self::BELONGS_TO,
		'class_name'    => 'apptype',
		'foreign_key'   => 'zhr_typeid',
		'mapping_name'  => 'apptype',
		'mapping_fields'=> 'zhr_typename',
		'as_fields'		=> 'zhr_typename'),
	);
}

?>